//
//  NetworkTool.m
//  ZeroCorner
//
//  Created by lanou3g on 15/11/19.
//  Copyright © 2015年 Zero_Zhou. All rights reserved.
//

#import "NetworkTool.h"

@implementation NetworkTool
+ (instancetype)sharedNetworkTools{
    static NetworkTool *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        NSURL *url = [NSURL URLWithString:@""];
        NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
        instance = [[self alloc] initWithBaseURL:url sessionConfiguration:config];
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html", nil];
        
    });
    return instance;
}


@end
